import request from '@/utils/request'

// 查询工作移交记录列表
export function listRecord(query) {
  return request({
    url: '/handover/record/list',
    method: 'get',
    params: query
  })
}

// 查询工作移交记录详细
export function getRecord(id) {
  return request({
    url: '/handover/record/' + id,
    method: 'get'
  })
}

// 新增工作移交记录
export function addRecord(data) {
  return request({
    url: '/handover/record',
    method: 'post',
    data: data
  })
}

// 工作交接
export function handover(data) {
  return request({
    url: '/handover/record/trans',
    method: 'post',
    params: data
  })
}

//客户交接
export function customerVo(data) {
  return request({
    url:'/customer/vo/update',
    method:'post',
    params:data
  })
}


// 修改工作移交记录
export function updateRecord(data) {
  return request({
    url: '/handover/record',
    method: 'put',
    data: data
  })
}

// 删除工作移交记录
export function delRecord(id) {
  return request({
    url: '/handover/record/' + id,
    method: 'delete'
  })
}

// 导出工作移交记录
export function exportRecord(query) {
  return request({
    url: '/handover/record/export',
    method: 'get',
    params: query
  })
}
